package com.jason.bbs.comment.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.jason.bbs.bean.ResultJson;
import com.jason.bbs.comment.feign.hystrix.UserHystrix;

@FeignClient(name = "service-user", fallback = UserHystrix.class)
public interface UserService {
	@GetMapping("/exitis/{userId}")
	public ResultJson exitis(@PathVariable("userId") Integer userId);
}
